package top.hjcwzx.wrench.mqtt.event;

import org.springframework.context.ApplicationEvent;
/**
 *
 * <p><b>类名：</b> MqttMessageEvent</p>
 * <p><b>描述：</b> mqtt消息事件</p>
 * <p><b>创建时间：</b> 2025-06-17 15:34</p>
 *
 * @author 胡锦程
 */
public class MqttMessageEvent extends ApplicationEvent {

    private final String topic;
    private final String message;

    public MqttMessageEvent(Object source, String topic, String message) {
        super(source);
        this.topic = topic;
        this.message = message;
    }

    public String getTopic() {
        return topic;
    }

    public String getMessage() {
        return message;
    }
}
